package org.example.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import org.example.entity.PersonalTaxRules;
import org.example.mapper.PersonalTaxRulesMapper;
import org.example.service.PersonalTaxRulesService;
@Service
public class PersonalTaxRulesServiceImpl extends ServiceImpl<PersonalTaxRulesMapper,PersonalTaxRules> implements PersonalTaxRulesService{

    @Resource
    private PersonalTaxRulesMapper personalTaxRulesMapper;

    @Override
    public int deleteByPrimaryKey(Integer rulesId) {
        return personalTaxRulesMapper.deleteByPrimaryKey(rulesId);
    }

    @Override
    public int insert(PersonalTaxRules record) {
        return personalTaxRulesMapper.insert(record);
    }

    @Override
    public int insertSelective(PersonalTaxRules record) {
        return personalTaxRulesMapper.insertSelective(record);
    }

    @Override
    public PersonalTaxRules selectByPrimaryKey(Integer rulesId) {
        return personalTaxRulesMapper.selectByPrimaryKey(rulesId);
    }

    @Override
    public int updateByPrimaryKeySelective(PersonalTaxRules record) {
        return personalTaxRulesMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PersonalTaxRules record) {
        return personalTaxRulesMapper.updateByPrimaryKey(record);
    }

}
